import Vue from 'vue'
import VueRouter from 'vue-router'
import Login from '../views/Login'

Vue.use(VueRouter)

const routes = [{
		path: '/',
		name: 'Login',
		component: Login
	},
	{
		path: '/article',
		name: 'article',
		component: resolve => require(['../views/Article'], resolve)

	},
	{
		path: '/Eidpublishing',
		name: 'Eidpublishing',
		component: resolve => require(['../views/Eidpublishing'], resolve),
		meta: {
			existence: true,
			title: '富文本编辑'
		}
	}
]

const router = new VueRouter({
	base: '/dist',
	routes
})

export default router
